﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Atom.Entity;
using System.Data.SqlClient;
using System.Data.Common;

namespace Atom.Interface.DataAccess
{
    public interface IDataAccess
    {
        int GetCount();

        SqlExecuteResult Delete(object id);

        SqlExecuteResult ExecuteCommand(DbCommand cmd, DbTransaction trans);
        SqlExecuteResult ExecuteCommands(List<DbCommand> commands, DbTransaction trans);

         bool CheckExist(string tableName, string columnName, string mapperValue  , string idColumnName, DbTransaction trans);

         List<T> ExecuteListEntity<T>(DbCommand cmd) where T : class, new();
    }
}
